package factory.simpleFactory;

/**
 * 公交车类
 *
 * @author 若雨成霜
 * @Created with IDEA
 */

public class Bus extends Transport {
    /**
     * 描述信息
     */
    @Override
    public void desc() {
        System.out.println("我是公交车！");
    }

    /**
     * 具体实现操作
     */
    @Override
    public void doSomething() {
        System.out.println("我最多可承载20位乘客！");
    }
}
